import { get, post } from '../../utils/request';

module.exports = {
  list: (data) => {
    return get('address', data)
  },

  detail: (id) => {
    return get('address/detail', {
      id: id
    })
  },

  save: (data) => {
    return post('address/save', data)
  },

  remove: (id) => {
    return post('address/remove', {
      id: id
    })
  },

  defaulted: () => {
    return get('address/default')
  }
}
